search the third word in string in c#

85

search the third word in string in c# -

string[] wordslist = text.Split(' ');
Console.WriteLine(wordslist[index-1]);

Comments

Submit
0 Comments